package com.yulinlin.admin.modules.im.controller;

import com.yulinlin.common.controller.SuperController;
import com.yulinlin.common.domain.ResponseVo;
import io.swagger.annotations.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMethod;

import com.yulinlin.admin.modules.im.domain.ImSessionUserEntity;

import com.yulinlin.admin.modules.im.service.IImSessionUserService;
import com.yulinlin.admin.modules.im.domain.config.ImSessionUserConfig;
import com.yulinlin.admin.modules.im.domain.page.ImSessionUserPage;

@Api(tags = "会话用户")
@RestController
@RequestMapping("/im/imSessionUser")
public class ImSessionUserController extends SuperController<ImSessionUserEntity,ImSessionUserPage>  {


    @Autowired
    private IImSessionUserService service;

    @ApiOperation("获取配置数据")
    @RequestMapping(value = "config",method = RequestMethod.POST)
    public ResponseVo<ImSessionUserConfig> config() {
        ImSessionUserConfig config =ImSessionUserConfig.newInstance();
        return ResponseVo.newInstance(config);
    }


}
